<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">  
<link type="text/css" rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/NewTopFoot.css"  />
<link type="text/css" id="styleName" rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/blue/color.css"/ >    
<link type="text/css"  rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/rmb.css"/>
<script src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/wdggcGobal.js"></script>


<link href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/newedit/css/public.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/newedit/css/member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/newedit/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function(){

function bank_select(item){
item.addClass("dd_hover");
            item.siblings(".dd_hover").removeClass("dd_hover");
}

$(".pay dd input").click(function(){
bank_select($(this).parent());
});
$(".pay dd img").click(function(){
var btn = $(this).siblings("input");
if(btn.length > 0){
btn.click();
}
});




function pay_money_select(item){
var txt = item.find(".pay_dian");
txt.addClass("dian_hover");
item.siblings().each(function(){
                $(this).find(".dian_hover").removeClass("dian_hover");
            });
$(".pay_total").show();


var rm = item.attr('myr');

rm = parseInt(rm);
if(isNaN(rm)){
rm = item.find('#id_cus_amount').val();

rm1 = parseInt(rm);
if(isNaN(rm1)){
return;
}
}

var hl = $("#hl_myr_to_cny").text();
hl = parseFloat(hl);
if(isNaN(hl)){
return;
}

var cny = rm * hl;

cny = Math.round(cny*100)/100;
$("#target_cny").text("" + cny);
$("#selectamt").text("RM" + rm);
$("#topupamtcny").val(cny);
$("#topupamtrm").val(rm);
}

$("#id_cus_amount").blur(function(){
var rm = $(this).val();

rm1 = parseInt(rm);
if(isNaN(rm1)){
return;
}

var hl = $("#hl_myr_to_cny").text();
hl = parseFloat(hl);
if(isNaN(hl)){
return;
}

var cny = rm * hl;

cny = Math.round(cny*100)/100;
$("#target_cny").text("" + cny);
$("#selectamt").text("RM" + rm);
$("#topupamtcny").val(cny);
$("#topupamtrm").val(rm);
});

$(".pay_money > dd > input").click(function(){
var dd = $(this).parent();
pay_money_select(dd);
});
$(".pay_dian").click(function(){
var btn = $(this).siblings(".dd_pice");
if(btn.length > 0){
btn.click();
}
});


        
});
</script>
<script language="javascript" type="text/javascript">   
    $(document).ready(function(){   

        $(".comingsoon").click(function(){
            alert ("敬请期待");
$("#offline").attr('checked', 'checked');
        });

$("#offline").click(function(){
$("#offlinediv").css('display', 'block');
        });   

$("#Maybank").click(function(){
$("#maybankshow").css('display', 'block');
$("#pbbshow").css('display', 'none');
$("#cimbshow").css('display', 'none');
        });   

$("#PublicBank").click(function(){
$("#maybankshow").css('display', 'none');
$("#pbbshow").css('display', 'block');
$("#cimbshow").css('display', 'none');
        });   

$("#CIMB").click(function(){
$("#maybankshow").css('display', 'none');
$("#pbbshow").css('display', 'none');
$("#cimbshow").css('display', 'block');
        });
});



</script>
<title>我的购物车-充值页面</title>
</head>

<body>

<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/js/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="<?php echo $this->url->getBaseUri() ?>public/front/js/colorbox/colorbox.css" />
<?php $this->partial('common/banner');?>
  <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a title="个人中心" href="<?php echo $this->url->getBaseUri() ?>Userinfo/index"></a>
            </div>
            <div class="lb">
               <div class="weizhi">
                      <b>当前位置：</b><a href="<?php echo $this->url->getBaseUri() ?>Userinfo/index">个人中心</a><span>&gt;</span>我的RMB帐户<span>&gt;</span>我的RMB账户充值
                  </div>
                <?php $this->partial('common/left');?>
<script type="text/javascript"> 
//左边样式切换
$(function() {
    var b = document.location.search.substr(1);
    b = b.toLowerCase();
function GetValue(search,index)
{
try
{
var url = search;// document.location.search.substr(1);
var x = url.split("&");
var v = x[index].split("=")[1];
return v;
}
catch(e)
{
return "";
}
}
b = GetValue(b,0);
if(b!=""){
$("#"+b).addClass("xz");
}
});


</script>
    <div class="right pay" style="width:740px">

        <form action="<?php echo $this->url->getBaseUri() ?>Userinfo/payok/textval;" id="memberchongform" method="post" enctype="multipart/form-data">
        <dl class="pay_say" style="display:none;">
           <dt>RMB账户充值</dt>
           <dd>1.为了确保您的账户及购物安全，请填写下面的信息。本网站绝不会向任何第三方披露用户个人信息。</dd>
           <dd>2.在您使用国外信用卡充值购物时，为保证交易安全，需由您（持卡人）持本人护照签收</dd>
           <div class="p_s_bj"></div>
       </dl>
       <dl class="pay_mode m_t_20">
   <dd class="dd_hover"><input disabled type="radio" id="online" class="comingsoon" name="pay_bank1"><img src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/newedit/images/pay/r8.jpg"  style="display: inline;"></dd>
           <div style="clear:both"></div>
  
   <div class="clear"></div>
   
       </dl>
   <dl class="pay_mode m_t_20">
           <dd class="dd_hover"><input type="radio" id="offline" name="pay_bank1"><img src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/newedit/images/pay/r6.jpg"  style="display: inline;"></dd>
   <div style="clear:both"></div>
    <div id="offlinediv" style="display:none">

    <?php foreach($banks as $bank) { ?>
           <dd><input id="<?php echo $bank->bank?>" type="radio" name="pay_bank" value="<?php echo $bank->bank;?>"><img src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/newedit/images/pay/<?php echo $bank->pic;?>" width="152px" height="42px" style="display: inline;"></dd>
    <?php } ?>
           </div>

   <div id="maybankshow"  style="display:none">
           <dd style="border:1px solid #dadada;padding:10px;margin-left:23px"><b>MayBank<div>5513 0651 9363</div> <div>SEVEN SEVEN ALIPAY</div></b></dd>
   </div>
   <div id="pbbshow"  style="display:none">
   <dd style="border:1px solid #dadada;padding:10px;margin-left:23px"><b>Public Bank<div>318 907 8014</div> <div>SEVEN SEVEN ALIPAY</div></b></dd>
   </div>
   <div id="cimbshow"  style="display:none">
   <dd style="border:1px solid #dadada;padding:10px;margin-left:23px"><b>CIMB Bank<div>860 203 2914</div> <div>SEVEN SEVEN ALIPAY</div></b></dd>
   </div>
           
           <div class="clear"></div>
       </dl>
       <div class="tishi">
       温馨提示:现在只开放<i>线下充值</i>，敬请期待其他在线支付
       </div>
       <dl class="pay_money m_t_20">
           <dt>请选择您要充值的金额:</dt>
           <dd class="dd_hover" myr="20"><input type="radio" class="dd_pice" name="paymoney" value="20"><span class="pay_dian">RM20.00</span></dd>
           <dd class="dd_hover" myr="50"><input type="radio" class="dd_pice" name="paymoney" value="50"><span class="pay_dian">RM50.00</span></dd>
           <dd class="dd_hover" myr="100"><input type="radio" class="dd_pice" name="paymoney" value="100"><span class="pay_dian">RM100.00</span></dd>
           <dd class="dd_hover" myr="300"><input type="radio" class="dd_pice" name="paymoney" value="300"><span class="pay_dian">RM300.00</span></dd>
           <dd class="dd_hover" myr="500"><input type="radio" class="dd_pice" name="paymoney" value="500"><span class="pay_dian">RM500.00</span></dd>
           <dd class="dd_hover" myr="1000"><input type="radio" class="dd_pice" name="paymoney" value="1000"><span class="pay_dian">RM1000.00</span></dd>           
           <dd class="dd_hover">
           <input type="radio" class="dd_pice other_pice" name="paymoney" value="0"> 
           <input type="text" id="id_cus_amount" name="pay_qita" class="pay_dian pay_qita" placeholder="其他金额">
           </dd>
           <div class="clear"></div>
       </dl>
       <div class="pay_total m_t_20" style="display:none;">
<p>当前人民币-马币汇率为:<span id="hl_myr_to_cny">1.500</span></p>
<p><span id="selectamt">RM20.00</span>折合人民币约：<strong id="target_cny">0</strong>￥</p>
<input type="hidden" id="topupamtrm" name="topupamtrm" value="0" />
<input type="hidden" id="topupamtcny" name="topupamtcny" value="0" />
       </div>
       <div class="mode_qita_box m_t_20">
          <dl>
              <dt>上传银行收据</dt><dd><input style="height:30px" id="file" name="file" type="file" class="qt_but" /></dd>
            </dl>
            <dl>
              <dt>留言</dt><dd><textarea name="remark" class="qt_txt"></textarea></dd>
               
            </dl>
       </div>
        
       <div class="p_but_layout m_t_20" align="center">
          <input type="button" class="pay_but" id= "czpay_but" value="确定" />
       </div>
   
    <input type="hidden" id="exchange" name="exchange" value="1.500">
           
   </form>
   
   
    </div>
    <div class="clear"></div>

<script language="javascript" type="text/javascript">   
    $(document).ready(function(){   
   $("#czpay_but").click(function() {
 if($("#topupamtcny").val() <= 0){alert("请选择您要充值的金额:");$("#target_cny").focus();return false;}
 if($("#file").val()==""){alert("上传银行收据");$("#file").focus();return false;}
 $('#memberchongform').submit();
});
});


</script>     
<div class="yj">
      </div>
    </div>
<?php $this->partial('common/bottom');?>
    
</body>
</html>
